package cn.wolfcode.trip.base.query;

import cn.wolfcode.trip.base.util.StringUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class QueryObject {
    private Integer currentPage=1;
    private Integer pageSize=5;
    private String keyword;
   private String orderby;

    public String getNameKey() {
        return StringUtil.empty2null(keyword);
    }
}
